package com.ly.pojo;

import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * t_student_class
 */
@Data
public class TStudentClass implements Serializable {
    private Integer id;

    /**
     * 班级代号
     */
    private String classCode;

    /**
     * 班级姓名
     */
    private String className;

    /**
     * 学生学号
     */
    private Long studentSno;

    /**
     * 学生姓名
     */
    private String studentName;

    private static final long serialVersionUID = 1L;

    public TStudentClass() {
    }

    public TStudentClass(Integer id, String classCode, String className, Long studentSno, String studentName) {
        this.id = id;
        this.classCode = classCode;
        this.className = className;
        this.studentSno = studentSno;
        this.studentName = studentName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TStudentClass that = (TStudentClass) o;
        return Objects.equals(id, that.id) && Objects.equals(classCode, that.classCode) && Objects.equals(className, that.className) && Objects.equals(studentSno, that.studentSno) && Objects.equals(studentName, that.studentName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, classCode, className, studentSno, studentName);
    }

    @Override
    public String toString() {
        return "TStudentClass{" +
                "id=" + id +
                ", classCode='" + classCode + '\'' +
                ", className='" + className + '\'' +
                ", studentSno=" + studentSno +
                ", studentName='" + studentName + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClassCode() {
        return classCode;
    }

    public void setClassCode(String classCode) {
        this.classCode = classCode;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Long getStudentSno() {
        return studentSno;
    }

    public void setStudentSno(Long studentSno) {
        this.studentSno = studentSno;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }
}